import { createApp } from "vue";
import "@/assets/css/index.stylus";
import "@/assets/css/theme.stylus";
import dayjs from "dayjs";
import advancedFormat from "dayjs/plugin/advancedFormat";
import customParseFormat from "dayjs/plugin/customParseFormat";
import localeData from "dayjs/plugin/localeData";
import weekday from "dayjs/plugin/weekday";
import weekOfYear from "dayjs/plugin/weekOfYear";
import weekYear from "dayjs/plugin/weekYear";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import useAntdDesign from "./plugin/antd";
import useTable from "./plugin/vxeTable";
import InitGlobalComponents from "./components";
import InitGlobalDirective from "./directive";
import "vxe-table/lib/style.css";
// 时间格式化
dayjs.extend(customParseFormat);
dayjs.extend(advancedFormat);
dayjs.extend(weekday);
dayjs.extend(localeData);
dayjs.extend(weekOfYear);
dayjs.extend(weekYear);
const app = createApp(App);
useAntdDesign(app);
useTable(app);
InitGlobalDirective(app);
InitGlobalComponents(app);
app.use(store).use(router).mount("#app");
